/* News Page Styles */
.news-page {
    min-height: 100vh;
    font-family: var(--main-font);
}

/* News Header */
.news-header {
    max-width: var(--container-width);
    margin: 0 auto var(--section-spacing);
    padding: var(--section-spacing) 0;
    text-align: center;
    background-color: var(--dark-bg);
}

.news-header h1 {
    color: var(--light-text);
    font-size: 3.5rem;
    margin-bottom: var(--section-spacing);
    font-weight: 600;
}

/* News Search */
.news-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.news-search-input {
    width: 100%;
    padding: var(--item-spacing) 3rem var(--item-spacing) 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--border-color);
    color: var(--light-text);
    font-size: 1rem;
}

.news-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.news-search-btn {
    position: absolute;
    right: var(--item-spacing);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
}

/* News Header Section */
.news-header-section {
    width: 100%;
    background-color: var(--dark-bg);
    padding: var(--section-spacing) 0 0;
}

.news-header {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--item-spacing);
    text-align: center;
}

.news-header h1 {
    color: var(--light-text);
    font-size: 3.5rem;
    margin-bottom: var(--section-spacing);
    font-weight: 600;
}

/* News Navigation */
.news-nav {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    padding: 0 var(--item-spacing);
    position: relative;
}

.news-nav a {
    color: var(--light-text);
    text-decoration: none;
    padding: var(--item-spacing) 0;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity var(--hover-transition);
    position: relative;
}

.news-nav a:hover,
.news-nav a.active {
    opacity: 1;
}

.news-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--item-spacing) 2rem;
    margin: -var(--item-spacing) 0;
}

.news-nav a:first-child {
    margin-right: 1rem;
}

.news-item {
    padding: var(--item-spacing) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pagination {
    padding-top: var(--item-spacing);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

/* News Content Section */
.news-content-section {
    width: 100%;
    background-color: #fff;
    padding: 0;
}

.news-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--item-spacing);
}

.news-item {
    margin-bottom: var(--section-spacing);
}

.news-link {
    text-decoration: none;
    display: block;
    transition: opacity var(--hover-transition);
}

.news-link:hover {
    opacity: 0.8;
}

.news-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: calc(var(--item-spacing) / 2);
}

.news-title {
    color: var(--dark-bg);
    font-size: 1.5rem;
    margin-bottom: calc(var(--item-spacing) / 2);
    line-height: 1.3;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: var(--section-spacing) 0;
    background-color: #fff;
}

.page-number,
.page-next,
.page-dots {
    color: var(--dark-bg);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all var(--hover-transition);
}

.page-number.active {
    background-color: var(--dark-bg);
    color: #fff;
    border-radius: var(--border-radius);
}

.page-number:hover:not(.active),
.page-next:hover {
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
}

.page-dots {
    cursor: default;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: var(--section-spacing) 0 0;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--section-spacing);
    padding: 0 var(--item-spacing);
}

.footer-nav {
    display: flex;
    gap: var(--section-spacing);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--hover-transition);
}

.footer-column a:hover {
    opacity: 1;
}

.footer-center {
    text-align: center;
}

.footer-logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-subscribe h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.subscribe-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--light-text);
    font-size: 0.9rem;
}

.subscribe-button {
    padding: 0.5rem 1rem;
    background: var(--light-text);
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity var(--hover-transition);
}

.subscribe-button:hover {
    opacity: 0.9;
}

.footer-right {
    text-align: right;
}

.footer-address {
    margin-bottom: 2rem;
}

.footer-address h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-address p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    color: var(--light-text);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity var(--hover-transition);
}

.social-link:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--section-spacing);
    padding: 1rem var(--item-spacing);
}

.footer-bottom-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-left: -1rem;
}

.footer-links a:first-child {
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    padding: var(--item-spacing) 0;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity var(--hover-transition);
    position: relative;
}

.footer-links a:hover,
.footer-links a.active {
    opacity: 1;
}

.footer-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-text);
}

.footer-divider {
    margin: 0 1.5rem;
    width: 1px;
    height: 1rem;
    background-color: rgba(255, 255, 255, 0.3);
}

.back-to-top {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--hover-transition);
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.75rem;
    margin-left: auto;
}

.back-to-top:hover {
    opacity: 1;
}

.back-to-top i {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--section-spacing);
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--section-spacing);
    }

    .footer-right {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-divider {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .news-header h1 {
        font-size: 2rem;
    }

    .news-nav {
        gap: calc(var(--item-spacing) / 2);
    }

    .news-nav a {
        padding: calc(var(--item-spacing) / 2);
    }

    .pagination {
        flex-wrap: wrap;
    }
}

.news-item {
    padding: var(--item-spacing) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    margin-bottom: 0.5rem;
}

.news-title a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color var(--hover-transition);
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.news-category {
    color: var(--accent-color);
    font-weight: 600;
}

.pagination {
    margin-top: var(--section-spacing);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    color: var(--dark-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--hover-transition);
}

.page-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.page-link.active {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.page-dots {
    color: var(--dark-text);
    padding: 0.5rem;
}

.page-link.next {
    font-weight: 600;
}